package com.liuguangzhou.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName DemoController
 * @Description: TODO
 * @Author liuguangzhou
 * @Date 2020/3/27
 * @Version V1.0
 **/
@Api(tags = "测试Controller")
@Controller
public class DemoController {
    @ResponseBody
    @GetMapping("/hello")
    @ApiOperation(value = "hello方法",notes = "传入什么值返回什么值")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "hello",value = "传入值",required = true,paramType = "query",dataType = "String")
    })
    public String hello(String hello){
        return hello;
    }
}
